﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAL;

namespace logic
{
    public class buyBudget
    {
        public static DataSet select(string where, string orderby, int pagesize, int pageindex)
        {
            return DAL.DbHelper.ExecuteDataSetPageSize("*", "buyBudget", where, "Bid", orderby, pagesize, pageindex);
        }
        public static void insert(BuyBudgetEntity budgetEnt)
        {
            BuyBudget.insert(budgetEnt);
        }

        public static void update(BuyBudgetEntity budgetEnt)
        {
            BuyBudget.update(budgetEnt);
        }

        public static BuyBudgetEntity getById(int bid)
        {
            return BuyBudget.getById(bid);
        }

        public static bool isExistDate(int year,int month,int companyId)
        {
            return BuyBudget.isExistDate(year,month,companyId);
        }
        public static bool isHint(int companyId)
        {
            return BuyBudget.isHint(companyId);
        }
        public static void updateIsHint(int bid)
        {
            BuyBudget.updateIsHint(bid);
        }
    }
}
